package homework.day01;

import javax.swing.*;
import java.io.File;

public class Text02 {
    public static void main(String[] args) {
        for (int i = 0; i < 100; i++) {
            File file = new File("./" + i + ".txt");
            if (file.exists()){
                file.delete();
                System.out.println("文件"+i+".txt删除完毕");
            }else {
                System.out.println("文件"+i+".txt不存在。");
            }
        }
    }
}
